# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=docbook2mdoc
pkgver=1.1.0
pkgrel=1
pkgdesc="DocBook to mdoc converter"
url="https://mandoc.bsd.lv/docbook2mdoc/"
arch="all"
license="ISC"
makedepends="bsd-compat-headers"
subpackages="$pkgname-doc"
options="!check" # no test suite
source="https://mandoc.bsd.lv/docbook2mdoc/snapshots/docbook2mdoc-$pkgver.tgz
	fix-mandir.patch
	strtonum.patch"

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="d935a12de59a1b91f51b3ddcc1047ce6e46f0490852c3ab1191402f6c2f9d8e79c57b1ad67ac7b2527c9aa4788f027ca6b83dffbcfed756af0422858713101be  docbook2mdoc-1.1.0.tgz
ff477e2f01275fa1dbcdb9c157c7086de76a66683855fba5cd7ac4c1fe0d258fde4869f4de12a740b5c0eee76e4f89d9e89fea9c528cfa0a4f2cf5bd9ebe3982  fix-mandir.patch
d39eab31a4724bebc173f8b1a632049c4cf05c5aac9301b505fc968817fbed07a9227d8dffb1f059c59be8f2d93ed4ead18a8b09458cbff29d1643ecfa7b946d  strtonum.patch"
